<?php
header("Content-Type: application/json; charset=UTF-8");
require_once "./classes/Logger.php";
require_once "./classes/ServiceDispatcher.php";

//$requestData = json_decode(str_replace("\\\"", "\"", $_REQUEST["requestData"]), true);
$requestData = json_decode($_REQUEST["requestData"], true);
$result = ServiceDispathcer::doService($requestData["serviceId"], $requestData["requestId"], $requestData["clientId"], $requestData["params"]);
echo json_encode($result);

?>
